proc check_exe_bit(file:File) = 
    var dos_signture = file.read(2)
    if dos_signture != "MZ":
        echo "Error: Not a valid exe file"
        return

    file.seek(0x3C)
    var pe_offest_bytes:int = file.read(4)
    pe_offest = 

    file.seek(pe_offest)
    pe_signa
# Read PE header offset from DOS stub
check_exe_bit()